home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-05-09 | 1.6 KB | 30 lines | [TEXT/ttxt] |
- -- Misc_X, Misc Utilities XObject v2.0
- Misc_X
- I mNew
- X mDispose
- S mBootName -- get the name of the boot disk
- S mWindowsDirectory -- get the path to the Windows directory
- IS mFileExists, filePath -- return 1 if file is there, otherwise 0
- ISS mCopyFile, sourcePath, destPath -- return 1 if successful, otherwise 0
- IS mFolderExists, folderPath -- return 1 if folder exists, otherwise 0
- IS mInsureFolder, folderPath -- create a full path to the folder, return possible error
- XS mDeleteFolder, folderPath -- delete folder along with contents
- SS mFileList, fontainerPath -- return list of files in the folder
- SSSSS mAsk, query, default, btnOK, btnCancel -- dialog box that accepts user input
- SSSSS mAnswer, query, btnL, btnM, btnR -- alert type dialog box with variable number of buttons
- IS mSpaceOnVol, volumeName -- return the number of free bytes on volume
- IS mDeleteGroup, groupName -- delete program group under Windows
- ----
- -- Copyright 1994 Sanctuary Woods --
- -- written by Bob McKay and Brian Parkinson
- --
- -- Append folder name in mInsureFolder with a colon
- -- gXObject(mInsureFolder, the pathName & "bands:genesis:"
- --
- -- The mAsk dialog box returns the text field if btnOk clicked, otherwise the btnCancel text
- -- The mAnswer dialog box returns the text of the button clicked
- --
- -- For mAnswer dialog box, the number of buttons is variable
- -- gXObject(mAnswer, "Are you sure ?", "", "Yes", "No") -- two buttons
- -- gXObject(mAnswer, "A simple alert box", "", "", "Ok") -- one button
-